package br.ufc.ck0017.ir.tree;

import java.util.ArrayList;
import java.util.List;

public class EXP implements IRNode {
    public final IRNode expression;

    public EXP(IRNode expression) {
        this.expression = expression;
    }

    @Override
    public List<IRNode> getChildren() {
        List<IRNode> children = new ArrayList<>(1);
        children.add(expression);

        return children;
    }

    @Override
    public IRNode build(List<IRNode> children) {
        return new EXP(children.get(0));
    }
}
